package pingan.com.quarter_hour.z_model;

import java.util.Map;

import io.reactivex.Flowable;
import pingan.com.quarter_hour.bean.VideoBean;
import pingan.com.quarter_hour.bean.ZDuanziItem;
import pingan.com.quarter_hour.http.RetrofitUtil;
import pingan.com.quarter_hour.z_presenter.CrossTalkPresenter;
import retrofit2.Retrofit;

/**
 * Created by wk on 2018/1/16.
 */

public class ZCrossTalkModel implements ZIvModel {
    private CrossTalkPresenter presenter;

    public ZCrossTalkModel(CrossTalkPresenter presenter) {
        this.presenter = presenter;
    }


    @Override
    public void getData(String url, Map<String, String> map) {
        //热门视频
        Flowable<ZDuanziItem> videos = RetrofitUtil.getInstant(url).getApiService().getCrossTalk(map);
        presenter.getData(videos);
    }
}
